<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title th:text="${title.configValue}"></title>
    <script src="/js/jquery-1.11.1.min.js"></script>
    <style type="text/css">
        .message{height: 100px;width: 200px;}
    </style>
</head>
<body>
<textarea id="message" name="message" class="message"></textarea>
<hr/>
<select name="service" id="service">
    <option value="MarketClient">MarketClient</option>
    <option value="OrdersClient">OrdersClient</option>
    <option value="LinearswapClient">LinearswapClient</option>
</select>
<br/>
<button id="send">send message</button>
<script type="text/javascript">
    $('#send').click(function(){
        $.ajax({
            url:"/send",
            data:{message:$('#message').val(),service:$('#service').val()},
            method:'POST',
            success:function(data,status){
              alert("数据：" + data + "\n状态：" + status);
            }
        });
    });
</script>
</body>
</html>